<%@page import="pl.org.waff.repository.*, java.util.Properties" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id="cmswitch" class="pl.org.waff.cm.CMSwitch" scope="session" />
<jsp:useBean id="repository" class="pl.org.waff.repository.InMemoryContentCache" scope="application" />
<div>
    <table width="100%">
        <tr><td width="90%">Folder: <%=cmswitch.getPath()%></td><td align="right"><jsp:include page="newfolder.jsp"/></td></tr>
    </table>
    <hr/>
    <%
        String view = cmswitch.getView();
        if (cmswitch.VIEW_DOCUMENT.equals(view)) {
    %>
    <jsp:include page="documentview.jsp"/>
    <% } else if (cmswitch.VIEW_COMENT_LIST.equals(view)) {%>
    <jsp:include page="commentlist.jsp"/>
    <% } else if (cmswitch.VIEW_COMMENT.equals(view)) {%>
    <jsp:include page="commentview.jsp"/>
    <% } else if (cmswitch.VIEW_FOLDER.equals(view)) {%>
    <jsp:include page="folderview.jsp"/>
    <% } else if (cmswitch.VIEW_FOLDER_LIST.equals(view)) {%>
    <jsp:include page="folderlist.jsp"/>
    <% }%>
</div>
